package com.tuanzi.loan.business.entity.galaxycard;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 银河黑卡卡权益快递信息 Entity
 * @author JinRuiyang 2018/1/19 11:09:21
 */
@Data
@Entity
@Table(name = "loan_galaxy_card_privilege_express")
@SuppressWarnings("serial")
@EqualsAndHashCode
public class GalaxyCardPrivilegeExpress implements Serializable {

    // 主键
    @Id
    @Column(name = "id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    // 用户关联的权益信息id
    @Column(name = "privilege_info_id")
    private Long privilegeInfoId;

    // 接件人姓名
    @Column(name = "receiver_name")
    private String receiverName;

    // 接件人电话
    @Column(name = "receiver_phone")
    private String receiverPhone;

    // 省份
    @Column(name = "province")
    private String province;

    // 城市
    @Column(name = "city")
    private String city;

    // 区域
    @Column(name = "area")
    private String area;

    // 地址
    @Column(name = "address")
    private String address;

    // 快递单号
    @Column(name = "express_no")
    private String express_no;

    // 操作人员
    @Column(name = "operator_name")
    private String operator_name;

    // 创建时间
    @Column(name = "create_time")
    private Date createTime;

    @Column(name = "update_time")
    private Date updateTime;

    public String getFullAddress(){
        return this.province+" "+this.city+" "+this.city+" "+this.address;
    }
}
